const express = require('express');
const app = express();

const self_mw_parse = require('./self_mw')

app.use(self_mw_parse)

app.post('/post',(req,res)=> {
    console.log('----')

    res.send(req.body)
})

app.get('/home',(req,res)=>{
    res.send({
        msg:'express get'
    })
})

app.listen(3000,()=>{
    console.log('3000 running')
})